import request from '../../utils/request'
// 定义可能的数据类型
export type RegisterData ={
    nickName: string|null,
    phonenumber: string|null,
    userName: string|null|'',
    password: string|null,
};
export type LoginData ={
    userName: string,
    password: string,
    code: string,
    uuid: string,
};

export function home(data: LoginData) {
    return request({
        url: '/home/left',

        method: 'post',
        data: data
    })
}

export function register(data: RegisterData) {
    return request({
        url: '/register',
        method: 'post',
        data: data
    })
}